<div class="box-tools" style="top:10px;">
  <form action="{:url('hetong/index')}" method="GET" pjax-search="" class="form-inline" id="project—form">
    <div class="form-group">
      <label for="title">合同名称</label>
      <input type="text" name="title" class="form-control" id="title">
    </div>
    <div class="form-group">
      <label for="project">所属项目</label>
      <input type="text" class="form-control" name="project" id="project">
    </div>
    <div class="form-group">
      <label for="issend">状态</label>
      <select class="form-control" name="issend" id="issend" style="border-radius:2px;">
        <option value="-1">全部</option>
        <option value="0" {if condition="input('get.status') eq '0'" }selected="selected" {
        /if} >未生成</option>
        <option value="1" {if condition="input('get.status') eq '1'" }selected="selected" {
        /if} >待签署</option>
        <option value="2" {if condition="input('get.status') eq '2'" }selected="selected" {
        /if} >待签章</option>
        <option value="3" {if condition="input('get.status') eq '3'" }selected="selected" {
        /if} >待发送</option>
        <option value="3" {if condition="input('get.status') eq '4'" }selected="selected" {
        /if} >已发送</option>
      </select>

    </div>
    <div class="form-group">
      <label for="start_date">开始时间</label>
      <input class="form-control timepicker" autocomplete="off" id="start_date" name="start_date"
             value="{:input('get.start_date')}" placeholder="开始时间">
    </div>
    <div class="form-group">
      <label for="end_date">结束时间</label>
      <input class="form-control timepicker" autocomplete="off" id="end_date" name="end_date"
             value="{:input('get.end_date')}" placeholder="{$Think.lang.end_date}">
    </div>
    <div class="form-group">
      <button type="submit" class="btn btn-default sreachs">查询</button>
      <button type="button" class="btn btn-primary" onclick="resetForm()">重置</button>
    </div>
    <!--<div class="input-group input-group-sm" style="width:150px;">-->
    <!--<input type="text" name="search" class="form-control pull-right" value="{:input('get.search')}" placeholder="{$Think.lang.search}" />-->
    <!--<div class="input-group-btn"><button type="submit" class="btn btn-default sreachs"><i class="fa fa-search"></i></button></div>-->
    <!--</div>-->
  </form>
</div>
<script>
    $(function () {
        $('.timepicker').datetimepicker({
            format: 'YYYY-MM-DD HH:mm:ss',   //YYYY-MM-DD HH:mm:ss
            locale: moment.locale('zh-cn')
        });

    })

    function resetForm() {
        $('input[name="title"]').val('')
        $('input[name="project"]').val('')
        $('select[name="issend"]').val('-1')
        $('input[name="start_date"]').val('')
        $('input[name="end_date"]').val('')
        $('#project—form').submit()
    }
</script>
